<?php
////////////////////////////////////////////////////
//	LinBoard
//	profile.php
//	Created: 14th April 2009; 22:40 UTC
//	LinBoard (c) Copyright OpenInferno 2008, 2009
////////////////////////////////////////////////////

//Setup Environment
error_reporting(E_ALL | E_STRICT);
define("LINBOARD", true);

//Load Framework
require_once("./Config.php");
require_once(ROOT_PATH . "/Framework/Framework.php");

if($_GET['uid'] != null && is_numeric($_GET['uid']))
{
	$details = Framework::User()->getUserDetails($_GET['uid']);
} else {
	Framework::Template()->set('error', 'This user does not exist!');
	Framework::Template()->fetch(ROOT_PATH . "/Templates/Default/error_template.php");
	die();
}

Framework::Template()->set('user', $details);
Framework::Template()->fetch(ROOT_PATH . "/Templates/Default/profile_template.php");
?>